#include "searcher.hpp"
#include <iostream>
#include <string>
#include <vector>

const std::string output_path = "data/output/raw_html.txt";

int main()
{
    ns_search::Searcher* searcher = new ns_search::Searcher();
    searcher->InitSearcher(output_path);

    std::string query;
    std::string json_string;
    std::cout << "Please Enter Words# ";

    while (std::getline(std::cin, query))
    {
        searcher->search(query, &json_string);
        std::cout << json_string << std::endl;
        std::cout << "Please Enter Words# ";
    }
    return 0;
}